#include <iostream>
using namespace std;

class Human
{
private:
	int age;
public:
	void SetAge(int inputAge)
	{
		age = inputAge;
	}
	int GetAge()
	{
		if(age > 30)
			return age - 2;
		else
			return age;
	}
};

int main()
{
	Human firstMan;
	firstMan.SetAge(35);
	
	Human firstWoman;
	firstWoman.SetAge(22);
	
	cout << "Age of firstMan " << firstMan.GetAge() << endl;
	cout << "Age of firstWoman " << firstWoman.GetAge() << endl;
	
	return 0;
}